package com.pajk.user.exception;

import net.pocrd.entity.ReturnCode;

/**
 * @author haomin
 */
public class UserServiceHttpCode extends ReturnCode {

    protected UserServiceHttpCode(String name, int code, ReturnCode display) {
        super(name, code, display);
    }

    protected UserServiceHttpCode(String name, String desc, int code) {
        super(name, desc, code);
    }

    // LoginService related
    public final static int        C_USERNAME_OR_PASSWORD_ERROR = 1003010;
    public final static ReturnCode USERNAME_OR_PASSWORD_ERROR   = new UserServiceHttpCode("USERNAME_OR_PASSWORD_ERROR", "用户名或密码错误", C_USERNAME_OR_PASSWORD_ERROR);

    public final static int        C_USER_NOT_FOUND = 1003020;
    public final static ReturnCode USER_NOT_FOUND   = new UserServiceHttpCode("USER_NOT_FOUND", "用户不存在", C_USER_NOT_FOUND);

    public final static int        C_LOGIN_FAILED = 1003030;
    public final static ReturnCode LOGIN_FAILED   = new UserServiceHttpCode("LOGIN_FAILED", "用户登录失败", C_LOGIN_FAILED);

    public final static int        C_USER_EXIST = 1003040;
    public final static ReturnCode USER_EXIST   = new UserServiceHttpCode("USER_EXIST", "用户已存在", C_USER_EXIST);

    public final static int        C_UNSUPPORTED_PHONE_NUM = 1003050;
    public final static ReturnCode UNSUPPORTED_PHONE_NUM   = new UserServiceHttpCode("DEVICE_PHONE_NUM_ERROR", "不支持此手机号", C_UNSUPPORTED_PHONE_NUM);

    public final static int        C_SAME_PASSWORD_ERROR = 1003060;
    public final static ReturnCode SAME_PASSWORD_ERROR   = new UserServiceHttpCode("SAME_PASSWORD_ERROR", "密码不能于原密码相同", C_SAME_PASSWORD_ERROR);

    public final static int        C_SMS_PASSWORD_ERROR = 1003070;
    public final static ReturnCode SMS_PASSWORD_ERROR   = new UserServiceHttpCode("SMS_PASSWORD_ERROR", "短信密码输入错误", C_SMS_PASSWORD_ERROR);

    public final static int        C_UNRECOGNIZED_SCENARIO = 1003080;
    public final static ReturnCode UNRECOGNIZED_SCENARIO   = new UserServiceHttpCode("UNRECOGNIZED_SCENARIO", "未知场景号", C_UNRECOGNIZED_SCENARIO);

    public final static int        C_SAFETYEXAM_NOT_QUALIFIED = 1003090;
    public final static ReturnCode SAFETYEXAM_NOT_QUALIFIED   = new UserServiceHttpCode("SAFETYEXAM_NOT_QUALIFIED", "安全问题回答不合格", C_SAFETYEXAM_NOT_QUALIFIED);

//    public final static int        C_NOT_YET_RECEIVED = 1003100;
//    public final static ReturnCode NOT_YET_RECEIVED   = new UserServiceHttpCode("NOT_YET_RECEIVED", "上行短信尚未收到", C_NOT_YET_RECEIVED);

    public final static int        C_NO_SUCH_SMSPASSWORD = 1003110;
    public final static ReturnCode NO_SUCH_SMSPASSWORD   = new UserServiceHttpCode("NO_SUCH_SMSPASSWORD", "没有这个验证码", C_NO_SUCH_SMSPASSWORD);

    public final static int        C_USER_NOT_AQUIRABLE = 1003120;
    public final static ReturnCode USER_NOT_AQUIRABLE   = new UserServiceHttpCode("USER_NOT_AQUIRABLE", "用户不能获取", C_USER_NOT_AQUIRABLE);

    public final static int        C_STATIC_PASSWORD_NOT_SET = 1003130;
    public final static ReturnCode STATIC_PASSWORD_NOT_SET   = new UserServiceHttpCode("STATIC_PASSWORD_NOT_SET", "用户不能获取", C_STATIC_PASSWORD_NOT_SET);

    public final static int        C_RENEW_USERTOKEN_FAILED = 1003140;
    public final static ReturnCode RENEW_USERTOKEN_FAILED    = new UserServiceHttpCode("RENEW_USERTOKEN_FAILED ", "用户获取token失败", C_RENEW_USERTOKEN_FAILED);


    // UserService related
    public final static int        C_WANLIID_BINDED_TO_DIFFERENT_USER = 1005000;
    public final static ReturnCode WANLIID_BINDED_TO_DIFFERENT_USER   = new UserServiceHttpCode("WANLIID_BINDED_TO_DIFFERENT_USER", "万里通ID已经绑定到另外一个用户", C_WANLIID_BINDED_TO_DIFFERENT_USER);


}
